import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Tabbar/Home'
import Vip from '@/components/Tabbar/Vip'
import shopCar from '@/components/Tabbar/shopCar'
import Search from '@/components/Tabbar/Search'
import NewsList from '@/components/News/newsList'
import NewsDetail from '@/components/News/newsDetail'
import photoList from '@/components/photo/photoList'


Vue.use(Router)

export default new Router({
  linkActiveClass: 'mui-active',
  routes: [
    { path: '/',redirect: '/home' },
    { path: '/home', name: 'Home',component: Home},
    { path: '/home/newsList',name: 'NewsList', component: NewsList},
    { path: '/home/newsList/newsDetail/:id',name: 'NewsDetail',component: NewsDetail},
    { path: '/home/photoList',name: 'photoList',component: photoList},
    { path: '/vip',name: 'Vip',component: Vip},
    { path: '/shopCar',name: 'shopCar',component: shopCar},
    { path: '/search',name: 'Search',component: Search}
  ]
})
